package sf.database.mapper.handle;

/**
 * @author Clinton Begin
 */
public class RowLimit {

    public static final int NO_ROW_OFFSET = 0;
    public static final int NO_ROW_LIMIT = Integer.MAX_VALUE;
    public static final RowLimit DEFAULT = new RowLimit();

    private final long offset;
    private final int limit;

    public RowLimit() {
        this.offset = NO_ROW_OFFSET;
        this.limit = NO_ROW_LIMIT;
    }

    public RowLimit(long offset, int limit) {
        this.offset = offset;
        this.limit = limit;
    }

    public long getOffset() {
        return offset;
    }

    public int getLimit() {
        return limit;
    }

}
